package initialize

import (
	"github.com/flipped-aurora/gin-vue-admin/server/router"
	"github.com/gin-gonic/gin"
)

func holder(routers ...*gin.RouterGroup) {
	_ = routers
	_ = router.RouterGroupApp
}
func initBizRouter(routers ...*gin.RouterGroup) {
	privateGroup := routers[0]
	publicGroup := routers[1]
	holder(publicGroup, privateGroup)
	{
		wearingpartsDefinitionRouter := router.RouterGroupApp.WearingpartsDefinition
		wearingpartsDefinitionRouter.InitEquipmentPartRouter(privateGroup, publicGroup)
	}
	{
		wearingpartsRouter := router.RouterGroupApp.Wearingparts
		wearingpartsRouter.InitErotableRouter(privateGroup, publicGroup)
	}
	{
		eplRouter := router.RouterGroupApp.Epl
		eplRouter.InitErotableRouter(privateGroup, publicGroup)
	}
	{
		equipment_maintenanceRouter := router.RouterGroupApp.Equipment_maintenance
		equipment_maintenanceRouter.InitServiceOrdersRouter(privateGroup, publicGroup)
		equipment_maintenanceRouter.InitEquipmentMaintenanceRouter(privateGroup, publicGroup)
	} // 占位方法，保证文件可以正确加载，避免go空变量检测报错，请勿删除。
	{
		intelligent_maintenancesRouter := router.RouterGroupApp.Intelligent_maintenances
		intelligent_maintenancesRouter.InitIntelligentMaintenanceRouter(privateGroup, publicGroup)
		deviceRouter := router.RouterGroupApp.Device
		deviceRouter.InitDevicesRouter(privateGroup, publicGroup)
		deviceRouter.InitAllVersionsRouter(privateGroup, publicGroup)
		deviceRouter.InitInformationRouter(privateGroup, publicGroup)
		deviceRouter.InitModelRouter(privateGroup, publicGroup)
	}
}
